home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tk_SetWindowVisual(3) Tk Library Procedures
-
-
-
- _________________________________________________________________
-
- NAME
- Tk_SetWindowVisual - change visual characteristics of window
-
- SYNOPSIS
- #include <tk.h>
-
- int
- Tk_SetWindowVisual(_t_k_w_i_n, _v_i_s_u_a_l, _d_e_p_t_h, _c_o_l_o_r_m_a_p)
-
- ARGUMENTS
- Tk_Window _t_k_w_i_n (in) Token for window.
-
- Visual *_v_i_s_u_a_l (in) New visual type to use
- for _t_k_w_i_n.
-
- unsigned int _d_e_p_t_h (in) Number of bits per pixel
- desired for _t_k_w_i_n.
-
- Colormap _c_o_l_o_r_m_a_p (in) New colormap for _t_k_w_i_n,
- which must be compatible
- with _v_i_s_u_a_l and _d_e_p_t_h.
- _________________________________________________________________
-
-
- DESCRIPTION
- When Tk creates a new window it assigns it the default
- visual characteristics (visual, depth, and colormap) for its
- screen. Tk_SetWindowVisual may be called to change them.
- Tk_SetWindowVisual must be called before the window has
- actually been created in X (e.g. before Tk_MapWindow or
- Tk_MakeWindowExist has been invoked for the window). The
- safest thing is to call Tk_SetWindowVisual immediately after
- calling Tk_CreateWindow. If _t_k_w_i_n has already been created
- before Tk_SetWindowVisual is called then it returns 0 and
- doesn't make any changes; otherwise it returns 1 to signify
- that the operation completed successfully.
-
- Note: Tk_SetWindowVisual should not be called if you just
- want to change a window's colormap without changing its
- visual or depth; call Tk_SetWindowColormap instead.
-
-
- KEYWORDS
- colormap, depth, visual
-
-
-
-
-
-
-
-
-
- Tk 1
-
-
-
-